package com.lwl.blog.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lwl.blog.web.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;

/**
 * 帖子用户dao层接口
 */
public interface UserMapper extends BaseMapper<UserEntity> {
    //根据姓名查用户
    UserEntity selectByUsername(String username) throws SQLException;
    //激活码
    UserEntity selectActCode(String code) throws SQLException;
    //更新头像
    void updateHeaderUrl(@Param("id") Integer id,@Param("filePath") String filePath);
}
